package com.ybkj.chat.module.dynamic.activity;

import android.view.View;
import android.widget.ImageView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.ybkj.chat.R;
import com.ybkj.chat.base.BaseMvpActivity;
import com.ybkj.chat.manager.ActivityManager;
import com.ybkj.chat.module.dynamic.adapter.DynamicAdapter;
import com.ybkj.chat.ui.view.RoundImageView;
import com.ybkj.chat.ui.view.recyclerview.XRecyclerView;
import com.ybkj.chat.utils.FullScreenUtils;

import butterknife.BindView;
import butterknife.OnClick;

/**
 * 附近个人动态
 */
public class NearByPersonalActivity extends BaseMvpActivity {


    @BindView(R.id.back_iv)
    ImageView backIv;
    @BindView(R.id.iv_head)
    RoundImageView ivHead;
    @BindView(R.id.dynamic_recycle)
    XRecyclerView dynamicRecycle;

    private DynamicAdapter mDynamicAdapter;

    @Override
    protected void injectPresenter() {

    }

    @Override
    protected void initTitle() {

    }

    @Override
    protected int getLayoutId() {
        return R.layout.activity_near_by_personal;
    }

    @Override
    protected void initView() {
        FullScreenUtils.fullScreen(mContext);
        initrecycle();
    }

    private void initrecycle() {
        mDynamicAdapter = new DynamicAdapter(mContext);
        mDynamicAdapter.addData("1");
        mDynamicAdapter.addData("1");
        mDynamicAdapter.addData("1");
        mDynamicAdapter.addData("1");
        mDynamicAdapter.addData("1");
        dynamicRecycle.setAdapter(mDynamicAdapter);
        mDynamicAdapter.setOnItemClickListener(new BaseQuickAdapter.OnItemClickListener() {
            @Override
            public void onItemClick(BaseQuickAdapter adapter, View view, int position) {
                ActivityManager.gotoActivity(mContext, DynamicDetailActivity.class);
            }
        });
    }

    @Override
    protected void initData() {

    }


    @OnClick(R.id.back_iv)
    public void onViewClicked() {
        finish();
    }


}
